package com.kuanter.kuanterauto.activity;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import com.kuanter.kuanterauto.R;
import com.umeng.analytics.MobclickAgent;

public class AttentionXinLangWeiboActivity extends Activity {
	private WebView webView;

	public void onResume() {
	    super.onResume();
	    MobclickAgent.onResume(this);
	}
	public void onPause() {
	    super.onPause();
	    MobclickAgent.onPause(this);
	}
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.xinlangweibo);
		webView = (WebView) this.findViewById(R.id.webView);
		webView.requestFocusFromTouch(); 
		
		WebSettings webSettings = webView.getSettings();
		webSettings.setJavaScriptEnabled(true);
		webSettings.setUseWideViewPort(false);
		webSettings.setSupportZoom(true);
		WebViewClient webViewClient = new WebViewClient(){
			
			@Override
			public void doUpdateVisitedHistory(WebView view, String url,
					boolean isReload) {
				// TODO Auto-generated method stub
				super.doUpdateVisitedHistory(view, url, isReload);
			}
		};
		webView.setWebViewClient(webViewClient);
		webViewClient.onPageFinished(webView, "http://e.weibo.com/kuanter");
		webView.loadUrl("http://e.weibo.com/kuanter?type=0");
	}
}
